<?php
namespace App\Params\Backend;
use App\Params\Param;
/**
 * 订单售后申请单审核参数
 *
 * @author: WangBin
 * @date: 2021/10/11
 * @mail: <849850352@qq.com>
 */
class AfterSalesApplyAuditParams extends Param
{
    public $apply_id;
    public $state;
    public $audit_opinion;
    public $user_id;
    public $user_name;

    public function rules()
    {
        return [
            'apply_id' => 'required|integer',
            'state' => 'required|string|in:APPROVED,REFUSED',
            'audit_opinion' => 'nullable|string',
            'user_id' => 'required|integer',
            'user_name' => 'required|string',
        ];
    }

    /**
     * @return mixed
     */
    public function getUserId()
    {
        return $this->user_id;
    }

    /**
     * @param mixed $user_id
     */
    public function setUserId($user_id): void
    {
        $this->user_id = $user_id;
    }

    /**
     * @return mixed
     */
    public function getUserName()
    {
        return $this->user_name;
    }

    /**
     * @param mixed $user_name
     */
    public function setUserName($user_name): void
    {
        $this->user_name = $user_name;
    }

    /**
     * @return mixed
     */
    public function getApplyId()
    {
        return $this->apply_id;
    }

    /**
     * @param mixed $apply_id
     */
    public function setApplyId($apply_id): void
    {
        $this->apply_id = $apply_id;
    }

    /**
     * @return mixed
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * @param mixed $state
     */
    public function setState($state): void
    {
        $this->state = $state;
    }

    /**
     * @return mixed
     */
    public function getAuditOpinion()
    {
        return $this->audit_opinion;
    }

    /**
     * @param mixed $audit_opinion
     */
    public function setAuditOpinion($audit_opinion): void
    {
        $this->audit_opinion = $audit_opinion;
    }
}
